"""
客户池页面
"""
from selenium.webdriver.common.by import By
from page.base_page import BasePage
class ClientsPage(BasePage):
    #领取按钮
    kh_khc_lq_locator = (By.CSS_SELECTOR, "#form1 > table > tbody > tr:nth-child(1) > td:nth-child(9) > a:nth-child(4)")

    #领取成功后提示
    kh_khc_ts_text_locator = (By.CSS_SELECTOR,"body > div.container > div.alert.alert-success")

    #点击领取
    def click_lq(self):
        self.driver.find_element(*self.kh_khc_lq_locator).click()

    #获取提示内容文本
    def get_element_text(self):
        return self.driver.find_element(*self.kh_khc_ts_text_locator).text.strip()
